package com.alks.function.data.dto.biocontrol.deptwork;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author MS
 * @since 2024/11/20下午2:45
 */
@Data
public class SoleIoPrintDto {

    @ApiModelProperty(value = "收/发货单位")
    private String deptName;

    @ApiModelProperty(value = "收/发货单号")
    private String sendNo;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "收/发货日期")
    private LocalDateTime  slipDate;

    @ApiModelProperty(value = "单据编号")
    private String printNo;

    @ApiModelProperty(value = "指令单列表")
    private List<Detail> details;

    @ApiModelProperty(value = "合计")
    private long countTotal;

    @ApiModelProperty(value = "仓管员")
    private String sysUser;

    @Data
    @ApiModel(value = "指定单详情")
    static public class Detail {

        @ApiModelProperty(value = "指令号")
        private String lotNo;

        @ApiModelProperty(value = "总双数")
        private Long total;

        @ApiModelProperty(value = "码数列表")
        private List<Item> items;
    }

    @Data
    @ApiModel("码数详情")
    static public class Item {

        @ApiModelProperty(value = "号码")
        private String size;

        @ApiModelProperty(value = "数量")
        private Long num;
    }
}
